package com.ykt.model;

/**
 * 视频源
 * @author long.hua
 * @version 1.0.0
 * @since 2016-05-26 23:04
 */
public class Video extends BaseModel<Video>{

    public static String swf_link = "swf_link";
    public static String status = "status";
    public static String tag = "tag";
    public static String seed = "seed";
    public static String playerwidth = "playerwidth";
    public static String title = "title";
    public static String duration = "duration";
    public static String df = "df";
    public static String first_image = "first_image";
    public static String times = "times";
    public static String context = "context";
    public static String original_definition = "original_definition";
    public static String playerheight = "playerheight";
    public static String vid = "vid";
    public static String ptime = "ptime";
    public static String cataid = "cataid";
    public static String hls = "hls";
    public static String flv = "flv";
    public static String mp4 = "mp4";

    public static final Video dao = new Video();

    /**
     * 根据视频ID
     *
     * @param vid 视频ID
     * @return
     */
    public Video findByVid(String vid){
        String sql = "select * from video where vid=?";
        return this.findFirst(sql, vid);
    }

}
